﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TreeManagement
{
    public partial class MapForm : Form
    {
        public MapForm()
        {
            InitializeComponent();
        }

        private void MapForm_Load(object sender, EventArgs e)
        {
            using (var context = new TreeDBEntities())
            {
                viewPanel1.Wards = context.Wards.ToList();
                viewPanel1.Roads = context.Roads.ToList();
                viewPanel1.Trees = context.Trees.ToList();
                viewPanel1.Refresh();
            }

        }
    }
}
